package com.p2p.auth.domain.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * 移动APP手势密码
 * @author 会飞的狼 on 2018/1/5.
 */
@Entity
@Table(name = "t_app_gesture_cipher")
@DynamicInsert
@DynamicUpdate
@EntityListeners(AuditingEntityListener.class)
@Data
public class AppGestureCipher extends IdEntity {

    private static final long serialVersionUID = -6329067277907181591L;

    @Column(columnDefinition = "varchar(15) comment '用户名(登录账号)'")
    private String loginName;

    @Column(columnDefinition = "int(10) comment '登录手势提醒 提示：1, 不提示:0, 默认要提示1'")
    private Integer loginPushMessage = 1;

    @Column(columnDefinition = "varchar(100) comment '手势密码'")
    private String gestureCipher;

    @Column(columnDefinition = "int(10) comment 'app应用类型 1:华财通, 2:理财师'")
    private Integer appType;

    @Column(columnDefinition = "int(5) comment '手势密码状态 true:开启状态 false:关闭状态 默认为关闭false'")
    private Boolean gestureCipherState = false;
}
